package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import ${cfg.queryPachage}.${entity}Query;
import ${cfg.pageVoPackage}.${entity}Vo;
import ${cfg.basePojoPackage}.dto.DeleteDto;
import ${cfg.addDtoPackage}.${entity}AddDto;
import ${cfg.updateDtoPackage}.${entity}UpdateDto;
import ${cfg.basePojoPackage}.vo.PageVo;
import com.github.pagehelper.PageInfo;
import java.util.List;


/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
    * ${table.comment!}的分页查询
    *
    * @param query
    * @return
    */
    PageVo<${entity}Vo> queryPage(${entity}Query query);

    /**
    * 新增${table.comment!}
    *
    * @param addDto
    */
    void save(${entity}AddDto addDto);

    /**
    * 修改${table.comment!}
    *
    * @param updateDto
    */
    void update(${entity}UpdateDto updateDto);

    /**
    * 删除多条${table.comment!}
    *
    * @param deleteDto
    */
    void delete(DeleteDto deleteDto);

}
</#if>
